package com.situ.day4;

import org.junit.Test;

public class OOPDemo {
    @Test
    public void test1() {
        Student student1 = new Student();
        student1.setId(1);
        student1.setName("zhangsan");
        student1.setAge(23);
        student1.setClassName("Java250703");
        System.out.println(student1);

        Student student2 = new Student(2, "lisi", 23, "Java2507");
        System.out.println(student2);
    }

    @Test
    public void test2() {
        Cal cal = new Cal(3, 5);
        int result1 = cal.add();
        System.out.println(result1);
        int result2 = cal.sub();
        System.out.println(result2);
    }
}
